home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’95
/
IceBreaker
/
Project Data
< prev
Wrap
Text File
|
1995-06-28
|
800b
|
33 lines
func getSound11K(rsrcName,is11kHz)
begin
local snd := {
sndFrameType: 'simpleSound,
samplingRate: 11013.0,
dataType: 1,
compressionType: 0};
snd.samples := GetSndAsSamplesRate11KHz(rsrcName);
return snd
end;
func getSound2K(rsrcName)
begin
local snd := {
sndFrameType: 'simpleSound,
samplingRate: 22026.0,
dataType: 1,
compressionType: 0};
snd.samples := GetSndAsSamplesRate11KHz(rsrcName);
return snd
end;
rf := OpenResFileX(":IceBreaker.rsrc");
BigSupriseSnd := getSound11K("BigSuprise", TRUE);
HeartAttackSnd := getSound11K("HeartAttack", TRUE);
WhatToDoSnd := getSound11K("WhatToDo", TRUE);
BigProblemSnd := getSound11K("BigProblem", TRUE);
CloseResFileX(rf);